<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>basic_serial_port::operator=</title>
    <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
    <meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
    <link rel="home" href="../../../index.html" title="Asio">
    <link rel="up" href="../basic_serial_port.html" title="basic_serial_port">
    <link rel="prev" href="open/overload2.html" title="basic_serial_port::open (2 of 2 overloads)">
    <link rel="next" href="read_some.html" title="basic_serial_port::read_some">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%">
    <tr>
        <td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td>
    </tr>
</table>
<hr>
<div class="spirit-nav">
    <a accesskey="p" href="open/overload2.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u"
                                                                                               href="../basic_serial_port.html"><img
        src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png"
                                                                                            alt="Home"></a><a
        accesskey="n" href="read_some.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
    <div class="titlepage">
        <div>
            <div><h4 class="title">
                <a name="asio.reference.basic_serial_port.operator_eq_"></a><a class="link" href="operator_eq_.html"
                                                                               title="basic_serial_port::operator=">basic_serial_port::operator=</a>
            </h4></div>
        </div>
    </div>
    <p>
        <a class="indexterm" name="asio.indexterm.basic_serial_port.operator_eq_"></a>
        Move-assign
        a <a class="link" href="../basic_serial_port.html" title="basic_serial_port"><code class="computeroutput"><span
            class="identifier">basic_serial_port</span></code></a>
        from another.
    </p>
    <pre class="programlisting"><span class="identifier">basic_serial_port</span> <span
            class="special">&amp;</span> <span class="keyword">operator</span><span class="special">=(</span>
    <span class="identifier">basic_serial_port</span> <span class="special">&amp;&amp;</span> <span class="identifier">other</span><span
                class="special">);</span>
</pre>
    <p>
        This assignment operator moves a serial port from one object to another.
    </p>
    <h6>
        <a name="asio.reference.basic_serial_port.operator_eq_.h0"></a>
        <span><a name="asio.reference.basic_serial_port.operator_eq_.parameters"></a></span><a class="link"
                                                                                               href="operator_eq_.html#asio.reference.basic_serial_port.operator_eq_.parameters">Parameters</a>
    </h6>
    <div class="variablelist">
        <p class="title"><b></b></p>
        <dl>
            <dt><span class="term">other</span></dt>
            <dd><p>
                The other <a class="link" href="../basic_serial_port.html" title="basic_serial_port"><code
                    class="computeroutput"><span class="identifier">basic_serial_port</span></code></a> object
                from which the move will occur.
            </p></dd>
        </dl>
    </div>
    <h6>
        <a name="asio.reference.basic_serial_port.operator_eq_.h1"></a>
        <span><a name="asio.reference.basic_serial_port.operator_eq_.remarks"></a></span><a class="link"
                                                                                            href="operator_eq_.html#asio.reference.basic_serial_port.operator_eq_.remarks">Remarks</a>
    </h6>
    <p>
        Following the move, the moved-from object is in the same state as if constructed
        using the <code class="computeroutput"><span class="identifier">basic_serial_port</span><span
            class="special">(</span><span class="keyword">const</span> <span
            class="identifier">executor_type</span><span class="special">&amp;)</span></code>
        constructor.
    </p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%">
    <tr>
        <td align="left"></td>
        <td align="right">
            <div class="copyright-footer">Copyright © 2003-2022 Christopher M. Kohlhoff<p>
                Distributed under the Boost Software License, Version 1.0. (See accompanying
                file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
            </p>
            </div>
        </td>
    </tr>
</table>
<hr>
<div class="spirit-nav">
    <a accesskey="p" href="open/overload2.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u"
                                                                                               href="../basic_serial_port.html"><img
        src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png"
                                                                                            alt="Home"></a><a
        accesskey="n" href="read_some.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
